<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Aria: ArDaemonizer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aria
   &#160;<span id="projectnumber">2.9.4</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classArDaemonizer.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classArDaemonizer-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ArDaemonizer Class Reference<div class="ingroups"><a class="el" href="group__UtilityClasses.html">Utility Classes</a> &#124; <a class="el" href="group__OptionalClasses.html">Optional Classes</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Switch to running the program as a background daemon (i.e.  
 <a href="classArDaemonizer.html#details">More...</a></p>

<p><code>#include &lt;ariaUtil.h&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9d94a98047b6a5b739c6019dd972215b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9d94a98047b6a5b739c6019dd972215b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArDaemonizer.html#a9d94a98047b6a5b739c6019dd972215b">ArDaemonizer</a> (int *argc, char **argv, bool closeStdErrAndStdOut)</td></tr>
<tr class="memdesc:a9d94a98047b6a5b739c6019dd972215b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor that sets up for daemonizing if arg checking. <br /></td></tr>
<tr class="separator:a9d94a98047b6a5b739c6019dd972215b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adcaf687f2c468a61f54637c08cec7bfc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adcaf687f2c468a61f54637c08cec7bfc"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArDaemonizer.html#adcaf687f2c468a61f54637c08cec7bfc">daemonize</a> (void)</td></tr>
<tr class="memdesc:adcaf687f2c468a61f54637c08cec7bfc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Daemonizes if asked too by arguments. <br /></td></tr>
<tr class="separator:adcaf687f2c468a61f54637c08cec7bfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab406da001d3d8a798a8278fe20144b7a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArDaemonizer.html#ab406da001d3d8a798a8278fe20144b7a">forceDaemonize</a> (void)</td></tr>
<tr class="memdesc:ab406da001d3d8a798a8278fe20144b7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Daemonizes always.  <a href="#ab406da001d3d8a798a8278fe20144b7a">More...</a><br /></td></tr>
<tr class="separator:ab406da001d3d8a798a8278fe20144b7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19812903293026e2a654b4c5526b939f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a19812903293026e2a654b4c5526b939f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArDaemonizer.html#a19812903293026e2a654b4c5526b939f">isDaemonized</a> (void)</td></tr>
<tr class="memdesc:a19812903293026e2a654b4c5526b939f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns if we're daemonized or not. <br /></td></tr>
<tr class="separator:a19812903293026e2a654b4c5526b939f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a285237981d0aec744c1eb670a7a3dfb5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a285237981d0aec744c1eb670a7a3dfb5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArDaemonizer.html#a285237981d0aec744c1eb670a7a3dfb5">logOptions</a> (void) const </td></tr>
<tr class="memdesc:a285237981d0aec744c1eb670a7a3dfb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Logs the options. <br /></td></tr>
<tr class="separator:a285237981d0aec744c1eb670a7a3dfb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4675fe8a1ffd45d1ee03ea7b632f772"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad4675fe8a1ffd45d1ee03ea7b632f772"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArDaemonizer.html#ad4675fe8a1ffd45d1ee03ea7b632f772">~ArDaemonizer</a> ()</td></tr>
<tr class="memdesc:ad4675fe8a1ffd45d1ee03ea7b632f772"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:ad4675fe8a1ffd45d1ee03ea7b632f772"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:aa3769dff796c9038bdecf6f21f18fdbc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa3769dff796c9038bdecf6f21f18fdbc"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>myCloseStdErrAndStdOut</b></td></tr>
<tr class="separator:aa3769dff796c9038bdecf6f21f18fdbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a816429db5e7a4357d6d583eca7ac2e71"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a816429db5e7a4357d6d583eca7ac2e71"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>myIsDaemonized</b></td></tr>
<tr class="separator:a816429db5e7a4357d6d583eca7ac2e71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a113bfcd9425b9e3dc8f319322e3dba"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a113bfcd9425b9e3dc8f319322e3dba"></a>
<a class="el" href="classArConstFunctorC.html">ArConstFunctorC</a>&lt; <a class="el" href="classArDaemonizer.html">ArDaemonizer</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>myLogOptionsCB</b></td></tr>
<tr class="separator:a0a113bfcd9425b9e3dc8f319322e3dba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13944b021a5321848950636515d3eefb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a13944b021a5321848950636515d3eefb"></a>
<a class="el" href="classArArgumentParser.html">ArArgumentParser</a>&#160;</td><td class="memItemRight" valign="bottom"><b>myParser</b></td></tr>
<tr class="separator:a13944b021a5321848950636515d3eefb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Switch to running the program as a background daemon (i.e. </p>
<p>fork) (Only available in Linux) </p>
<p><b>Java and Python Wrappers:</b> Not available in Java or Python wrapper libraries. </p><dl class="section note"><dt>Note</dt><dd>Not available on Windows </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ab406da001d3d8a798a8278fe20144b7a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ArDaemonizer::forceDaemonize </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Daemonizes always. </p>
<p>This returns true if daemonizing worked, returns false if it didn't...</p>
<p>the parent process exits here if forking worked. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>ariaUtil.h</li>
<li>ariaUtil.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="classArDaemonizer.html">ArDaemonizer</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
